﻿using StarsAdmin.Core.DB.Entities;
using StarsAdmin.Core.Enums;

namespace StarsAdmin.Core.DB.SeedData
{
    public class MenuSeedData : IEntitySeedData<MenuEntity>
    {
        public IEnumerable<MenuEntity> HasData()
        {
            return [
                new MenuEntity {
                    Id=1300000000111,
                    Name = "Visualization",
                    Title="可视化",
                    Path = "/visualization",
                    Redirect="/visualization/data",
                    ComponentPath="/src/layout/Layout.vue",
                    Icon = "el-Platform",
                    Type = MenuTypeEnum.Directory,
                    Description = "这是可视化",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=false,
                    IsAffis=false,
                    Sort = 2},
                new MenuEntity {
                    Id=1300000000112,
                    ParentId=1300000000111,
                    Name = "DataVisualization",
                    Title="数据可视化",
                    Path = "/visualization/data",
                    ComponentPath="/src/views/visualization/data/DataVisualization.vue",
                    Icon = "el-Platform",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是数据可视化",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 1},
                new MenuEntity {
                    Id=1300000000113,
                    ParentId=1300000000111,
                    Name = "3DVisualization",
                    Title="3D可视化",
                    Path = "/visualization/3d",
                    ComponentPath="/src/views/visualization/modelVisualization/ModelVisualization.vue",
                    Icon = "el-Platform",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是3D可视化",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 2},
                new MenuEntity {
                    Id=1300000000114,
                    Name = "Auth",
                    Title="权限管理",
                    Path = "/auth",
                    ComponentPath="/src/layout/Layout.vue",
                    Redirect="/auth/user",
                    Icon = "el-Lock",
                    Type = MenuTypeEnum.Directory,
                    Description = "这是权限管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=false,
                    IsAffis=false,
                    Sort = 3,},
                new MenuEntity {
                    Id=1300000000115,
                    ParentId=1300000000114,
                    Name = "User",
                    Title="用户管理",
                    Path = "/auth/user",
                    ComponentPath="/src/views/auth/user/User.vue",
                    Icon = "el-User",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是用户管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 1,},
                new MenuEntity {
                    Id=1300000000116,
                    ParentId=1300000000114,
                    Name = "Role",
                    Title="角色管理",
                    Path = "/auth/role",
                    ComponentPath="/src/views/auth/role/Role.vue",
                    Icon = "el-UserFilled",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是角色管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 2,},
                new MenuEntity {
                    Id=1300000000117,
                    ParentId=1300000000114,
                    Name = "Menu",
                    Title="菜单管理",
                    Path = "/auth/menu",
                    ComponentPath="/src/views/auth/menu/Menu.vue",
                    Icon = "el-Menu",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是菜单管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 3,},
                new MenuEntity {
                    Id=1300000000118,
                    Name = "System",
                    Title="系统设置",
                    Path = "/system",
                    ComponentPath="/src/layout/Layout.vue",
                    Redirect="/system/user",
                    Icon = "el-Setting",
                    Type = MenuTypeEnum.Directory,
                    Description = "这是系统设置",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=false,
                    IsAffis=false,
                    Sort = 4,},
                new MenuEntity {
                    Id=1300000000119,
                    ParentId=1300000000118,
                    Name = "Api",
                    Title="接口管理",
                    Path = "/system/api",
                    ComponentPath="/src/views/system/api/Api.vue",
                    Icon = "el-Operation",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是接口管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 1,},
                new MenuEntity {
                    Id=1300000000120,
                    ParentId=1300000000118,
                    Name = "File",
                    Title="文件管理",
                    Path = "/system/file",
                    ComponentPath="/src/views/system/file/File.vue",
                    Icon = "el-Operation",
                    Type = MenuTypeEnum.Menu,
                    Description = "这是文件管理",
                    IsEnabled=true,
                    IsHidden=false,
                    IsKeepalive=true,
                    IsAffis=false,
                    Sort = 2,},
                ];
        }
    }
}